$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

$f: 19.2;
body{
  overflow-x: hidden;
}
.home {
  .banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      max-height: 100vh;
    }

    .text {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      text-align: center;
      transform: translateY(-50%);
      font-size: $fontSize_64;
      color: white;
      font-weight: 600;
      text-transform: uppercase;
      font-style: italic;
    }
  }
  .sec1 {
    padding: 95/$f+vw 0 36/$f+vw;
    h1 {
      color: #454545;
      text-align: center;
      font-size: 40/$f+vw;
      font-style: normal;
      font-weight: 600;
      line-height: 1.15; /* 115% */
      text-transform: uppercase;
      margin-bottom: 29/$f+vw;
    }
    .text {
      p {
        width: 720/$f+vw;
        color: #454545;
        text-align: center;
        font-size: 16/$f+vw;
        font-style: normal;
        font-weight: 400;
        line-height: 1.5; /* 146.25% */
        margin: 0 auto 110/$f+vw;

      }
    }
    a {
      display: block;
      padding: 10/$f+vw 40/$f+vw;
      color: #FFF;
      text-align: center;
      font-size: 16/$f+vw;
      font-style: normal;
      font-weight: 400;
      line-height: 1.5; /* 146.25% */
      text-transform: uppercase;
      background-color: #C8161E;
      transform: skewX(-5deg);
      border-radius: 5px;
      transition: all 600ms;
      margin: 0 auto 64/$f+vw;
      width: fit-content;
      p {
        transform: skewX(5deg);
        width: fit-content;
      }
      &:hover{
        background-color: rgba(210, 9, 43, .8);
      }
    }
    .img {
      width: 100%;
      margin-bottom: 110/$f+vw;
      img {
        display: block;
        width: 100%;
      }
    }
    .flex {
      display: flex;
      align-items: center;
      justify-content: center;
      .item {
        display: flex;
        align-items: flex-end;
        line-height: 1;
        margin-right: 50/$f+vw;
        h5 {
          color: #000;
          text-align: center;
          font-size: 50/$f+vw;
          font-weight: 700;
          margin: 0 9/$f+vw 0 0;
          text-transform: uppercase;
          font-style: italic;
        }
        p {
          color: #454545;
          text-align: center;
          font-size: 16/$f+vw;
          font-style: normal;
          font-weight: 400;
          line-height: 2;
          width: fit-content;
        }
      }
      &:nth-last-child(1) {
        margin-right: 0;
      }
    }
  }
}
.sec2 {
  .proImg {
    position: relative;
    width: 100%;
    background-image: url(../images/pro3.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 431px;
    background-size: cover;
    background-position: center;
    img {
      display: block;
      width: 100%;
    }
    h2 {
      color: #FFF;
      font-size: 51/$f+vw;
      font-style: normal;
      font-weight: 600;
      line-height: 1.3; /* 127.059% */
      text-transform: uppercase;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 360/$f+vw;
      margin: 0;
    }
  }
  .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550/$f+vw;
    .img {
      width: 850/$f+vw;
      display: flex;
      justify-content: center;
      margin-right: 190/$f+vw;
      img {
        display: block;
        max-width: 100%;
      }
    }
    .content {
      width: 640/$f+vw;
      p {
        width: 380/$f+vw;
        color: #454545;
        font-size: 16/$f+vw;
        font-weight: 400;
        line-height: 1.5; /* 146.25% */
      }
    }
  }
}
.sec3 {
  width: 100vw;
  overflow: hidden;
  padding: 20/$f+vw 0;
  .zi_swiper {
    width: 120vw;
    .swiper-wrapper {
      transition-timing-function: linear!important;
      .swiper-slide {
        font-size: 164/$f+vw;
        font-style: normal;
        font-weight: 400;
        color: #FFFFFF;
        text-transform: uppercase;
        text-stroke: 1px #000000;
        -webkit-text-stroke: 1px #000000;
      }
    }
  }
}
.sec4 {
  .joke {
    width: 1640/$f+vw;
    margin: 30/$f+vw auto 0;
    padding-bottom: 168/$f+vw;
    h2 {
      color: #000;
      font-size: 64/$f+vw;
      font-style: normal;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
      margin-bottom: 46/$f+vw;
    }
    .main {
      position: relative;
      .swiper {
        width: 100%;
        overflow: hidden;
        .swiper-slide {
          display: block;
          background: #F1F2F2;
          height: 335/$f+vw;
          border-radius: 15/$f+vw;
          overflow: hidden;
          transition: 0.4s;
          .img {
            width: 311/$f+vw;
            height: 226/$f+vw;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 50/$f+vw auto 10/$f+vw;
            img {
              display: block;
              max-width: 100%;
              max-height: 100%;
            }
          }
          p {
            color: #060101;
            text-align: center;
            font-size: 22/$f+vw;
            font-weight: 400;
            text-transform: uppercase;
            transition: 0.4s;
          }
          &:hover {
            box-shadow: 0px 0px 20px 0px rgba(46,49,68,0.2);
            p {
              color: #C40B13;
            }
          }
        }
      }
      .btns {
        width: 1780/$f+vw;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        svg {
          width: 28/$f+vw;
          pointer-events: auto;
          cursor: pointer;
        }
        svg:nth-child(1) {
          transform: rotate(180deg);
        }
      }
    }
  }
}
@media screen and (max-width: 1510px){
  .home {
    .sec1 {
      padding: 60/$f+vw 0 36/$f+vw;
      .text {
        p {
          margin: 0 auto 60/$f+vw;
        }
      }
    }
    .sec3 {
      .zi_swiper {
        .swiper-wrapper {
          .swiper-slide {
            font-size: 150/$f+vw;
            white-space: nowrap;
          }
        }
      }
    }
  }
}
@media screen and (max-width: 1024px){
  .home {
    padding-top: 60px;
    .sec1 {
      width: 90%;
      margin: auto;
      padding: 60/$f+vw 0 36/$f+vw;
      h1 {
        font-size: 24px;
      }
      a {
        font-size: 12px;
        padding: 5px 10px;
        p {
          font-size: 12px;
        }
      }
      .text {
        p {
          font-size: 12px;
          margin: 0 auto 60/$f+vw;
        }
      }
      .flex {
        .item {
          h5 {
            font-size: 18px;
          }
          p {
            font-size: 12px;
            line-height: 1;
            position: relative;
            top: -2px;
          }
        }
      }
    }
    .sec2 {
      .proImg {
        h2 {
          font-size: 24px;
        }
      }
      .flex {
        .content {
          p {
            font-size: 12px;
          }
        }
      }
    }
    .sec4 {
      .joke {
        h2 {
          font-size: 24px;
        }
        .main {
          .swiper {
            .swiper-slide {
              p {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }
}
@media screen and (max-width: 768px){
  .home {
    .sec1 {
      h1 {
        margin-bottom: 20px;
      }
      .text {
        p {
          width: 100%;
          margin: 0 auto 30px;
        }
      }
      .flex{
        flex-wrap: wrap;
        .item {
          width: 100%;
          margin: 0 0 20px;
          justify-content: center;
        }
      }
    }
    .sec2 {
      h2 {
        left: 5vw;
      }
      .proImg {
        height: 300px;
        img {
          height: 100%;
          object-fit: cover;
        }
      }
      .flex {
        width: 90%;
        margin: auto;
        flex-direction: column;
        padding: 30px 0;
        .img {
          width: 100%;
          margin: 0 0 30px;
          img {
            width: 100%;
          }
        }
        .content {
          width: 100%;
          p {
            width: 100%;
          }
        }
      }
    }
    .sec4 {
      padding: 30px 0 0;
      .joke {
        h2 {
          margin-bottom: 30px;
        }
        .main {
          .swiper {
            .swiper-slide {
              height: fit-content;
              padding: 40px 0;
              .img {
                width: 90%;
                height: unset;
              }
            }
          }
          .btns {
            position: unset;
            transform: unset;
            width: auto;
            svg {
              width: 16px;
            }
          }
        }
      }
    }
  }
}
